package com.ln.dm1104.demo03;

import java.util.ArrayList;
import java.util.Collections;

/**
 * @author Ln
 * @version 终极版
 * @date 2022/11/4 16:35
 */
public class Test01 {
    public static void main(String[] args) {
        ArrayList<String> list= new ArrayList<>();
        Collections.addAll(list, "张无忌", "周芷若", "赵敏", "张强", "张三丰");

        list.stream().filter(t->t.startsWith("张")).filter(t->t.length()==3).forEach(t-> System.out.println(t));
    }
}
